<template>
  <!--  引入element-ui的布局-->
  <el-container class="container" >

    <el-aside width="auto">
      <!--      使用菜单栏组件！-->
      <common-aside></common-aside>
    </el-aside>

    <el-container>

      <el-header>
        <!--        设置页面头部-->
        <common-header></common-header>
      </el-header>

      <el-main>
        <!--        设置页面主体-->
        <router-view></router-view>
      </el-main>

    </el-container>
  </el-container>
</template>

<script>
import CommonAside from "@/components/CommonAside";
import CommonHeader from "@/components/CommonHeader";

export default {
  name: "Main",
  components: {
    //引入左侧菜单栏组件
    CommonAside,
    CommonHeader
  },
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.el-header {
  background-color: #888;
  padding-left: 0;
  padding-right: 0;
}

.el-main {
  padding-top: 0;
  background: rgba(34, 34, 34, 0.5);
}

.container {
  height: 100%;
  width: 100%;
  background-image: url("/src/static/jp_background.png");
  background-size: cover;
  z-index: -1;
}
</style>
